package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the LABOR_TURNOVER database table.
 * 
 */
@Entity
@Table(name="LABOR_TURNOVER")
@NamedQuery(name="LaborTurnover.findAll", query="SELECT l FROM LaborTurnover l")
public class LaborTurnover implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="LABOR_TURNOVER_LABORID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="LABOR_TURNOVER_LABORID_GENERATOR")
	@Column(name="LABOR_ID")
	private long laborId;

	@Column(name="DIMISSION_DATE")
	private Timestamp dimissionDate;

	@Column(name="EXECUTIVE_CHAMPION")
	private String executiveChampion;

	@Column(name="HANDOVER_DATE")
	private Timestamp handoverDate;

	@Column(name="HANDOVER_DIRECTOR")
	private String handoverDirector;

	@Column(name="LABOR_APPROVER")
	private String laborApprover;

	@Column(name="LABOR_FANPING")
	private BigDecimal laborFanping;

	@Column(name="LABOR_REMARK")
	private String laborRemark;

	@Column(name="VOLUNTARY_TURNOVER")
	private BigDecimal voluntaryTurnover;

	//bi-directional many-to-one association to ReasonsLeaving
	@ManyToOne
	@JoinColumn(name="REASL_ID")
	private ReasonsLeaving reasonsLeaving;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public LaborTurnover() {
	}

	public long getLaborId() {
		return this.laborId;
	}

	public void setLaborId(long laborId) {
		this.laborId = laborId;
	}

	public Timestamp getDimissionDate() {
		return this.dimissionDate;
	}

	public void setDimissionDate(Timestamp dimissionDate) {
		this.dimissionDate = dimissionDate;
	}

	public String getExecutiveChampion() {
		return this.executiveChampion;
	}

	public void setExecutiveChampion(String executiveChampion) {
		this.executiveChampion = executiveChampion;
	}

	public Timestamp getHandoverDate() {
		return this.handoverDate;
	}

	public void setHandoverDate(Timestamp handoverDate) {
		this.handoverDate = handoverDate;
	}

	public String getHandoverDirector() {
		return this.handoverDirector;
	}

	public void setHandoverDirector(String handoverDirector) {
		this.handoverDirector = handoverDirector;
	}

	public String getLaborApprover() {
		return this.laborApprover;
	}

	public void setLaborApprover(String laborApprover) {
		this.laborApprover = laborApprover;
	}

	public BigDecimal getLaborFanping() {
		return this.laborFanping;
	}

	public void setLaborFanping(BigDecimal laborFanping) {
		this.laborFanping = laborFanping;
	}

	public String getLaborRemark() {
		return this.laborRemark;
	}

	public void setLaborRemark(String laborRemark) {
		this.laborRemark = laborRemark;
	}

	public BigDecimal getVoluntaryTurnover() {
		return this.voluntaryTurnover;
	}

	public void setVoluntaryTurnover(BigDecimal voluntaryTurnover) {
		this.voluntaryTurnover = voluntaryTurnover;
	}

	public ReasonsLeaving getReasonsLeaving() {
		return this.reasonsLeaving;
	}

	public void setReasonsLeaving(ReasonsLeaving reasonsLeaving) {
		this.reasonsLeaving = reasonsLeaving;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}